package com.ymatou.iapi.productmanager.service;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetTemplateProductCountCall extends YmatouAutoTestCall{
	private static String opurl ="api/SellerProduct/GetTemplateProductCount";
	
	public GetTemplateProductCountCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"GET","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	

	
	public JSONObject call(int sellerId,int templateId,boolean isShowDetail){
		return this.callAndGetReturnData(MapUtil.hashMap("SellerId",sellerId,"TemplateId",templateId,"IsShowDetail",isShowDetail));
	}
	
	
	public static void main(String[] args) {
		new GetTemplateProductCountCall().call(3383,12,true);
	}
}
